package com.example.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@ApiModel(description = "Commodity entity")
public class Commodity {
    @ApiModelProperty("Commodity ID")
    long id;

    @ApiModelProperty("Commodity name")
    String name;

    @ApiModelProperty("Commodity amount")
    double amount;

    @ApiModelProperty("Commodity sale price")
    double salePrice;

    @ApiModelProperty("Commodity purchase price")
    double purchasePrice;

    @ApiModelProperty("Commodity purchase date")
    String purchaseDate;

    @ApiModelProperty("Commodity sale date")
    String saleDate;

    @ApiModelProperty("Commodity supplier")
    Supplier supplier;

    @ApiModelProperty("Commodity customer")
    Customer customer;

}
